import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.SystemColor;
import javax.swing.JLabel;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import javax.swing.JMenuBar;


public class FenPrincipale2 extends JFrame {

	private JPanel contentPane;
	private JPanel panelDateJour;
	private JPanel panelBanqueSelect;
	private JPanel panelSolde;
	private JPanel panelListeCpte;
	private JPanel panelListeEcriture;
	private JPanel panelDetailEcriture;
	private JLabel lblDateJour;
	private JLabel lblNomBanque;
	private JLabel lblSoldeActuel;
	private JLabel lblSoldeDescritures;
	private JLabel labelSoldeVenir;
	private JLabel labelVarSoldeActuel;
	private JLabel labelVarSoldeEcriVenir;
	private JLabel labelVarSoldeVenir;
	private JMenuBar menuBar;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FenPrincipale2 frame = new FenPrincipale2();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FenPrincipale2() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 1536, 900);
		setJMenuBar(getMenuBar_1());
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		GridBagLayout gbl_contentPane = new GridBagLayout();
		gbl_contentPane.columnWidths = new int[]{415, 684, 407, 0};
		gbl_contentPane.rowHeights = new int[]{124, 496, 111, 0};
		gbl_contentPane.columnWeights = new double[]{1.0, 1.0, 1.0, Double.MIN_VALUE};
		gbl_contentPane.rowWeights = new double[]{1.0, 1.0, 1.0, Double.MIN_VALUE};
		contentPane.setLayout(gbl_contentPane);
		GridBagConstraints gbc_panelDateJour = new GridBagConstraints();
		gbc_panelDateJour.fill = GridBagConstraints.BOTH;
		gbc_panelDateJour.insets = new Insets(0, 0, 5, 5);
		gbc_panelDateJour.gridx = 0;
		gbc_panelDateJour.gridy = 0;
		contentPane.add(getPanelDateJour(), gbc_panelDateJour);
		GridBagConstraints gbc_panelBanqueSelect = new GridBagConstraints();
		gbc_panelBanqueSelect.insets = new Insets(0, 0, 5, 5);
		gbc_panelBanqueSelect.fill = GridBagConstraints.BOTH;
		gbc_panelBanqueSelect.gridx = 1;
		gbc_panelBanqueSelect.gridy = 0;
		contentPane.add(getPanelBanqueSelect(), gbc_panelBanqueSelect);
		GridBagConstraints gbc_panelSolde = new GridBagConstraints();
		gbc_panelSolde.insets = new Insets(0, 0, 5, 0);
		gbc_panelSolde.fill = GridBagConstraints.BOTH;
		gbc_panelSolde.gridx = 2;
		gbc_panelSolde.gridy = 0;
		contentPane.add(getPanelSolde(), gbc_panelSolde);
		GridBagConstraints gbc_panelListeCpte = new GridBagConstraints();
		gbc_panelListeCpte.gridheight = 2;
		gbc_panelListeCpte.insets = new Insets(0, 0, 5, 5);
		gbc_panelListeCpte.fill = GridBagConstraints.BOTH;
		gbc_panelListeCpte.gridx = 0;
		gbc_panelListeCpte.gridy = 1;
		contentPane.add(getPanelListeCpte(), gbc_panelListeCpte);
		GridBagConstraints gbc_panelListeEcriture = new GridBagConstraints();
		gbc_panelListeEcriture.insets = new Insets(0, 0, 5, 0);
		gbc_panelListeEcriture.gridwidth = 2;
		gbc_panelListeEcriture.fill = GridBagConstraints.BOTH;
		gbc_panelListeEcriture.gridx = 1;
		gbc_panelListeEcriture.gridy = 1;
		contentPane.add(getPanelListeEcriture(), gbc_panelListeEcriture);
		GridBagConstraints gbc_panelDetailEcriture = new GridBagConstraints();
		gbc_panelDetailEcriture.gridwidth = 2;
		gbc_panelDetailEcriture.insets = new Insets(0, 0, 0, 5);
		gbc_panelDetailEcriture.fill = GridBagConstraints.BOTH;
		gbc_panelDetailEcriture.gridx = 1;
		gbc_panelDetailEcriture.gridy = 2;
		contentPane.add(getPanelDetailEcriture(), gbc_panelDetailEcriture);
	}

	private JPanel getPanelDateJour() {
		if (panelDateJour == null) {
			panelDateJour = new JPanel();
			panelDateJour.setBackground(SystemColor.activeCaption);
			panelDateJour.setForeground(SystemColor.activeCaption);
			panelDateJour.setLayout(new BorderLayout(20, 20));
			panelDateJour.add(getLblDateJour());
		}
		return panelDateJour;
	}
	private JPanel getPanelBanqueSelect() {
		if (panelBanqueSelect == null) {
			panelBanqueSelect = new JPanel();
			panelBanqueSelect.setBackground(SystemColor.activeCaption);
			panelBanqueSelect.setForeground(SystemColor.activeCaption);
			panelBanqueSelect.setLayout(new BorderLayout(0, 0));
			panelBanqueSelect.add(getLblNomBanque());
		}
		return panelBanqueSelect;
	}
	private JPanel getPanelSolde() {
		if (panelSolde == null) {
			panelSolde = new JPanel();
			panelSolde.setBackground(SystemColor.activeCaption);
			panelSolde.setForeground(SystemColor.activeCaption);
			panelSolde.setLayout(new GridLayout(3, 2, 0, 0));
			panelSolde.add(getLblSoldeActuel());
			panelSolde.add(getLabelVarSoldeActuel());
			panelSolde.add(getLblSoldeDescritures());
			panelSolde.add(getLabelVarSoldeEcriVenir());
			panelSolde.add(getLabelSoldeVenir());
			panelSolde.add(getLabelVarSoldeVenir());
		}
		return panelSolde;
	}
	private JPanel getPanelListeCpte() {
		if (panelListeCpte == null) {
			panelListeCpte = new JPanel();
			panelListeCpte.setBackground(SystemColor.inactiveCaption);
		}
		return panelListeCpte;
	}
	private JPanel getPanelListeEcriture() {
		if (panelListeEcriture == null) {
			panelListeEcriture = new JPanel();
			panelListeEcriture.setBackground(SystemColor.control);
			panelListeEcriture.setForeground(SystemColor.inactiveCaptionBorder);
		}
		return panelListeEcriture;
	}
	private JPanel getPanelDetailEcriture() {
		if (panelDetailEcriture == null) {
			panelDetailEcriture = new JPanel();
			panelDetailEcriture.setBackground(SystemColor.info);
		}
		return panelDetailEcriture;
	}
	private JLabel getLblDateJour() {
		if (lblDateJour == null) {
			lblDateJour = new JLabel("                    Dimanche 20 janvier 2013");
			lblDateJour.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return lblDateJour;
	}
	private JLabel getLblNomBanque() {
		if (lblNomBanque == null) {
			lblNomBanque = new JLabel("                    BANQUE1");
			lblNomBanque.setFont(new Font("Tahoma", Font.BOLD, 16));
		}
		return lblNomBanque;
	}
	private JLabel getLblSoldeActuel() {
		if (lblSoldeActuel == null) {
			lblSoldeActuel = new JLabel("    Solde actuel ");
			lblSoldeActuel.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return lblSoldeActuel;
	}
	private JLabel getLblSoldeDescritures() {
		if (lblSoldeDescritures == null) {
			lblSoldeDescritures = new JLabel("    Solde des \u00E9critures \u00E0 venir ");
			lblSoldeDescritures.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return lblSoldeDescritures;
	}
	private JLabel getLabelSoldeVenir() {
		if (labelSoldeVenir == null) {
			labelSoldeVenir = new JLabel("    Solde \u00E0 venir ");
			labelSoldeVenir.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return labelSoldeVenir;
	}
	private JLabel getLabelVarSoldeActuel() {
		if (labelVarSoldeActuel == null) {
			labelVarSoldeActuel = new JLabel("         :        10 000 \u20AC");
			labelVarSoldeActuel.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return labelVarSoldeActuel;
	}
	private JLabel getLabelVarSoldeEcriVenir() {
		if (labelVarSoldeEcriVenir == null) {
			labelVarSoldeEcriVenir = new JLabel("         :        - 7 000 \u20AC");
			labelVarSoldeEcriVenir.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return labelVarSoldeEcriVenir;
	}
	private JLabel getLabelVarSoldeVenir() {
		if (labelVarSoldeVenir == null) {
			labelVarSoldeVenir = new JLabel("         :          3 000 \u20AC");
			labelVarSoldeVenir.setFont(new Font("Tahoma", Font.PLAIN, 15));
		}
		return labelVarSoldeVenir;
	}
	private JMenuBar getMenuBar_1() {
		if (menuBar == null) {
			menuBar = new JMenuBar();
		}
		return menuBar;
	}
}
